home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 27 / CU Amiga Magazine's Super CD-ROM 27 (1998)(EMAP Images)(GB)[!][issue 1998-10].iso / CUCD / Programming / THXPlayLib / developer / C / inline / thxplay.h
Encoding:
C/C++ Source or Header  |  1998-06-19  |  1.8 KB  |  81 lines

  1. #ifndef _INLINE_THXPLAY_H
  2. #define _INLINE_THXPLAY_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #ifndef THXPLAY_BASE_NAME
  9. #define THXPLAY_BASE_NAME THXPlayBase
  10. #endif
  11.  
  12. #define thxInit(module) \
  13.     LP1(0x1E, ULONG, thxInit, APTR, module, a0, \
  14.     , THXPLAY_BASE_NAME)
  15.  
  16. #define thxFree() \
  17.     LP0NR(0x24, thxFree, \
  18.     , THXPLAY_BASE_NAME)
  19.  
  20. #define thxPlay() \
  21.     LP0NR(0x2A, thxPlay, \
  22.     , THXPLAY_BASE_NAME)
  23.  
  24. #define thxStop() \
  25.     LP0NR(0x30, thxStop, \
  26.     , THXPLAY_BASE_NAME)
  27.  
  28. #define thxPause() \
  29.     LP0NR(0x36, thxPause, \
  30.     , THXPLAY_BASE_NAME)
  31.  
  32. #define thxWind(direction) \
  33.     LP1NR(0x3C, thxWind, ULONG, direction, d0, \
  34.     , THXPLAY_BASE_NAME)
  35.  
  36. #define thxGetVolume() \
  37.     LP0(0x42, ULONG, thxGetVolume, \
  38.     , THXPLAY_BASE_NAME)
  39.  
  40. #define thxSetVolume(volume) \
  41.     LP1NR(0x48, thxSetVolume, ULONG, volume, d0, \
  42.     , THXPLAY_BASE_NAME)
  43.  
  44. #define thxGetNumSongs() \
  45.     LP0(0x4E, ULONG, thxGetNumSongs, \
  46.     , THXPLAY_BASE_NAME)
  47.  
  48. #define thxSetSong(song) \
  49.     LP1NR(0x54, thxSetSong, ULONG, song, d0, \
  50.     , THXPLAY_BASE_NAME)
  51.  
  52. #define thxPlayNote(channel, note, instrument) \
  53.     LP3NR(0x5A, thxPlayNote, ULONG, channel, d0, ULONG, note, d1, ULONG, instrument, d2, \
  54.     , THXPLAY_BASE_NAME)
  55.  
  56. #define thxStopNote(channel) \
  57.     LP1NR(0x60, thxStopNote, ULONG, channel, d0, \
  58.     , THXPLAY_BASE_NAME)
  59.  
  60. #define thxNoteFX(channel, effect, parameter) \
  61.     LP3NR(0x66, thxNoteFX, ULONG, channel, d0, ULONG, effect, d1, ULONG, parameter, d2, \
  62.     , THXPLAY_BASE_NAME)
  63.  
  64. #define thxSignalEnd(task, signalset) \
  65.     LP2NR(0x72, thxSignalEnd, struct Task *, task, a0, ULONG, signalset, d0, \
  66.     , THXPLAY_BASE_NAME)
  67.  
  68. #define thxSongEnded() \
  69.     LP0(0x78, BOOL, thxSongEnded, \
  70.     , THXPLAY_BASE_NAME)
  71.  
  72. #define thxSyncByte() \
  73.     LP0(0x7E, ULONG, thxSyncByte, \
  74.     , THXPLAY_BASE_NAME)
  75.  
  76. #define thxPlaytime() \
  77.     LP0(0x84, ULONG, thxPlaytime, \
  78.     , THXPLAY_BASE_NAME)
  79.  
  80. #endif /*  _INLINE_THXPLAY_H  */
  81.